package com.deyuanyun.pic.pbf.controller.dto.defect;

import org.springframework.validation.Errors;

/**
 * User: chenby
 * Date: 13-11-27
 * Time: 下午2:25
 */
public abstract class DefaultCommand<T> implements Command<T> {
    @Override
    public T toDomain(Errors errors) {
        throw new UnsupportedOperationException("not supported");
    }

    @Override
    public T toDomain() {
        throw new UnsupportedOperationException("not supported");
    }

    @Override
    public void fromDomain(T domain) {
        throw new UnsupportedOperationException("not supported");
    }

}
